package com.rc.object;

import com.rc.activity.dao.tbl_Merchant;

public class MerchantObj extends tbl_Merchant {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static String[] keys = { "MerchantID", "Name", "Address", "City",
			"State", "PhoneNumber", "Logo", "ZipCode" };
	public static final String MERCHANT_ID = keys[0];
	public static final String MERCHANT_NAME = keys[1];
	public static final String MERCHANT_ADDRESS = keys[2];
	public static final String MERCHANT_CITY = keys[3];
	public static final String MERCHANT_STATE = keys[4];
	public static final String MERCHANT_PHONE = keys[5];
	public static final String MERCHANT_LOGO = keys[6];
	public static final String ZIP_CODE = keys[7];

	public static tbl_Merchant getObjMerchantByBaseObject(BaseObject baseObj) {
		if (baseObj == null) {
			return null;
		}
		return new tbl_Merchant(baseObj.getParamLong(MERCHANT_ID),
				baseObj.getParam(MERCHANT_NAME),
				baseObj.getParam(MERCHANT_LOGO),
				baseObj.getParam(MERCHANT_ADDRESS),
				baseObj.getParam(MERCHANT_CITY),
				baseObj.getParam(MERCHANT_STATE), baseObj.getParam(ZIP_CODE),
				baseObj.getParam(MERCHANT_PHONE), "", "", "","");
	}

}
